<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>优购商城</title>
<!--载入css样式-->
<!--载入css样式-->
<link rel="stylesheet" type="text/css" href="Public/Home/css/base.css"/>
<link rel="stylesheet" type="text/css" href="Public/Home/css/userCenter.css"/>
<link rel="stylesheet" type="text/css" href="Public/Home/css/addAddress.css"/>
</head>
<body>
<!--头部公用模板-->
{{include file='VIEW_PATH/Common/header.php'}}

<!--用户中心内容部分-->
<div id="center">
	<!--位置路径-->
	<div class="site">
		您当前的位置：
		<a href="#">首页</a>
		>我的优购>我的收货地址
	</div>
	<!--用户中心显示区-->
	<div class="user_center">
		<!--左侧公共部分-->
		{{include file='VIEW_PATH/UserCenter/UserCenterSider.php'}}
		<!--右侧公共部分-->
		<div id="address" class="center_body fr">
			<h3 class="my_addr_title">我的收货地址</h3>
			<div class="add_addr_btn">
				<a href="JavaScript:;"><i class="iconfont">&#xe617;</i>新增收货地址</a>
			</div>
			<!--地址列表-->
			<div class="addr_list">
				<table>
					<tr class="addr_list_title">
	                    <th width="136px">收货人</th>
	                    <th width="150px">所在地区</th>
	                    <th width="200px">详细地址</th>
	                    <th width="142px">收货人手机</th>
	                    <th width="100px"></th>
	                    <th width="100px">操作</th>
                  	</tr>
					
					{{foreach from="$addrData" value="$v"}}
					<tr class="addr_list_detail" default="true">
						<td>{{$v['consignee']}}</td>
						<td>{{$v['province']}} {{$v['city']}} {{$v['district']}}</td>
						<td>{{$v['detail']}}</td>
						<td>{{$v['tel']}}</td>
						<td>
							{{if value="$v['index']"}}
							<span class="default">默认地址</span>
							{{endif}}
						</td>
						<td>
							<p class="operate">
								<input type="hidden" name="adid" value="{{$v['adid']}}" />
								<a class="myaddr_mdf" href="javascript:void(0);">修改</a>
								|
								<a class="addrDel" href="{{U('UserCenter/addrDel',array('adid'=>$v['adid']))}}"><i class="iconfont">&#xe638;</i></a>
							</p>
						</td>
					</tr>
					{{endforeach}}
				</table>
			</div>
			<script type="text/javascript">
				var getAddr = "{{U('UserCenter/getAddr')}}";
				var editAddr = "{{U('UserCenter/editAddr')}}";
			</script>
			<!--添加新地址-->
			<div style="display: none;" class="new_address">
				<form action="" method="post">
					<p>新增收货地址</p>
					<div class="line">
						<span>所 在 地 区</span>
						<select style="min-width: 150px;" name="province" id="area1">
		
						</select>
						<select style="min-width: 150px;" name="city" id="area2">
							
						</select>
						<select style="min-width: 150px;" name="district" id="area3">
							
						</select>
					</div>
					<div class="line">
						<span>详 细 地 址</span>
						<input style="width: 500px;" type="text" name="detail" id="detail" value="" />
					</div>
					<div class="line">
						<span>收货人姓名</span>
						<input type="text" name="consignee" id="consignee" value="" />
					</div>
					<div class="line">
						<span>收货人手机</span>
						<input style="width: 200px;" type="text" name="tel" id="tel" value="" />
					</div>
					<div class="line">
						<input style="vertical-align: middle;" type="checkbox" name="index" id="index" checked="" value="1" />
						设为默认地址
					</div>
					<div class="line">
						<button type="submit" id="submit">保存</button>
						<button type="button" id="cancel">取消</button>
					</div>
					<input style="display: none;" type="hidden" name="adid" id="adid" value="" />
				</form>
			</div>
		</div>
		
	</div>
</div>
<script src="Public/Home/js/area.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
//	地区初始化
	area.init('area');
</script>
<!--底部公用模板-->
{{include file='VIEW_PATH/Common/footer.php'}}

<!--城市联动-->

</body>
</html>
















